Skip to content

Fix procedure_stats plan query after compression migration#462

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/procedure-stats-decompress
Mar 7, 2026
Merged

Fix procedure_stats plan query after compression migration#462
erikdarlingdata merged 1 commit intodevfrom
fix/procedure-stats-decompress

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • PR LOB compression + deduplication for query stats tables (#419) #433 migrated collect.procedure_stats to compressed LOB storage (COMPRESS()/DECOMPRESS())
  • GetProcedureStatsPlanXmlByCollectionIdAsync was missed — still referenced the old query_plan column
  • Fix: CAST(DECOMPRESS(ps.query_plan_text) AS nvarchar(max))
  • Without this fix, viewing execution plans for procedure stats rows would fail

Test plan

  • Open Dashboard, navigate to procedure stats, click to view a plan — should render correctly

🤖 Generated with Claude Code

…gration

PR #433 migrated procedure_stats to compressed LOB storage but missed
updating GetProcedureStatsPlanXmlByCollectionIdAsync — it still referenced
the old query_plan column instead of DECOMPRESS(query_plan_text). This
would cause plan viewing to fail for procedure stats rows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 27d4176 into dev Mar 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant